package com.summer.data.jql.with;

import com.summer.data.Jql;
import com.summer.data.jql.behavior.TableAble;

/**
 * @author 345480567@qq.com
 */
public class With1<T1 extends TableAble> {

    private T1 t1;

    public With1(Class<T1> clazz1) {
        try {
            t1 = clazz1.newInstance();
        } catch (InstantiationException e) {
            throw new RuntimeException(e);
        } catch (IllegalAccessException e) {
            throw new RuntimeException(e);
        }
    }

    public Jql then(With1Fun<T1> fun1) {
        return fun1.returnJql(t1);
    }

}
